package com.news.entity;

import java.sql.Timestamp;

public class News {
	// 新闻id
	private int newsId;
	// 新闻类型
	private String newsType;
	// 新闻标题
	private String newsHeadline;
	// 新闻简介
	private String newsIntro;
	// 新闻内容
	private String newsDetails;
	// 新闻作者
	private String newsAuthor;
	// 新闻日期
	private Timestamp newsDate;
	// 新闻图片路径
	private String newsImg;
	// 新闻热度
	private int newsHeat;
	// 新闻评论数量
	private int newsReviewNum;

	// get和set方法
	public int getNewsId() {
		return newsId;
	}

	public void setNewsId(int newsId) {
		this.newsId = newsId;
	}

	public String getNewsType() {
		return newsType;
	}

	public void setNewsType(String newsType) {
		this.newsType = newsType;
	}

	public String getNewsHeadline() {
		return newsHeadline;
	}

	public void setNewsHeadline(String newsHeadline) {
		this.newsHeadline = newsHeadline;
	}

	public String getNewsIntro() {
		return newsIntro;
	}

	public void setNewsIntro(String newsIntro) {
		this.newsIntro = newsIntro;
	}

	public String getNewsDetails() {
		return newsDetails;
	}

	public void setNewsDetails(String newsDetails) {
		this.newsDetails = newsDetails;
	}

	public String getNewsAuthor() {
		return newsAuthor;
	}

	public void setNewsAuthor(String newsAuthor) {
		this.newsAuthor = newsAuthor;
	}

	public Timestamp getNewsDate() {
		return newsDate;
	}

	public void setNewsDate(Timestamp newsDate) {
		this.newsDate = newsDate;
	}

	public String getNewsImg() {
		return newsImg;
	}

	public void setNewsImg(String newsImg) {
		this.newsImg = newsImg;
	}

	public int getNewsHeat() {
		return newsHeat;
	}

	public void setNewsHeat(int newsHeat) {
		this.newsHeat = newsHeat;
	}

	public int getNewsReviewNum() {
		return newsReviewNum;
	}

	public void setNewsReviewNum(int newsReviewNum) {
		this.newsReviewNum = newsReviewNum;
	}

	// 构造方法

	public News() {
		super();
	}

	public News(int newsId) {
		super();
		this.newsId = newsId;
	}

	public News(int newsId, String newsType, String newsHeadline, String newsIntro, String newsDetails,
			String newsAuthor, Timestamp newsDate, String newsImg, int newsHeat, int newsReviewNum) {
		super();
		this.newsId = newsId;
		this.newsType = newsType;
		this.newsHeadline = newsHeadline;
		this.newsIntro = newsIntro;
		this.newsDetails = newsDetails;
		this.newsAuthor = newsAuthor;
		this.newsDate = newsDate;
		this.newsImg = newsImg;
		this.newsHeat = newsHeat;
		this.newsReviewNum = newsReviewNum;
	}

	public News(String newsType, String newsHeadline, String newsIntro, String newsDetails, String newsAuthor,
			Timestamp newsDate, String newsImg, int newsHeat, int newsReviewNum) {
		super();
		this.newsType = newsType;
		this.newsHeadline = newsHeadline;
		this.newsIntro = newsIntro;
		this.newsDetails = newsDetails;
		this.newsAuthor = newsAuthor;
		this.newsDate = newsDate;
		this.newsImg = newsImg;
		this.newsHeat = newsHeat;
		this.newsReviewNum = newsReviewNum;
	}

	public News(int newsId, int newsHeat, int newsReviewNum) {
		super();
		this.newsId = newsId;
		this.newsHeat = newsHeat;
		this.newsReviewNum = newsReviewNum;
	}
	public News(int newsId, String newsType, String newsHeadline, String newsIntro, String newsAuthor,
			Timestamp newsDate, String newsImg, int newsHeat, int newsReviewNum) {
		super();
		this.newsId = newsId;
		this.newsType = newsType;
		this.newsHeadline = newsHeadline;
		this.newsIntro = newsIntro;
		this.newsAuthor = newsAuthor;
		this.newsDate = newsDate;
		this.newsImg = newsImg;
		this.newsHeat = newsHeat;
		this.newsReviewNum = newsReviewNum;
	}
	@Override
	public String toString() {
		return "News [newsId=" + newsId + ", newsType=" + newsType + ", newsHeadline=" + newsHeadline + ", newsIntro="
				+ newsIntro + ", newsDetails=" + newsDetails + ", newsAuthor=" + newsAuthor + ", newsDate=" + newsDate
				+ ", newsImg=" + newsImg + ", newsHeat=" + newsHeat + ", newsReviewNum=" + newsReviewNum + "]";
	}

	// toString方法
	
}
